package objects;

public class StorageInfo {
    private String path;//文件路径
    private String state;//文件状态
    private boolean isRemoveable;//是否可移除（判断内部存储）
    private boolean isWriteable;//是否可写

    public boolean isWriteable() {
        return isWriteable;
    }

    public void setIsWriteable(boolean isWriteable) {
        this.isWriteable = isWriteable;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public boolean isRemoveable() {
        return isRemoveable;
    }

    public void setIsRemoveable(boolean isRemoveable) {
        this.isRemoveable = isRemoveable;
    }

    public StorageInfo(String path) {
        this.path = path;
    }

    public boolean isMounted() {
        return "mounted".equals(state);
    }
}
